<div class="detailsBox" id="archiveBorrowRecordDiv">
	<#if fields??>
	<div class="cktitle"><span class="xiala"></span>存柜资料</div>
	<div class="m10 detaiTab" style="border-right:1px solid #e1e1e1; border-left:1px solid #e1e1e1">
        <table data="${FORMTYPE_ARCHIVE_INFO}" width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
            <tbody>
                <#list 0..(fields?size/3)?ceiling-1 as x> 
            	 	<tr>
            	 		<#list 0..2 as index> 
                	 		<#if fields[x*3+index]??>
	                            <td align="right" class="bg " width="15%">${fields[x*3+index].fieldName}</td>
	                            <td class="fieldVaule" data="${fields[x*3+index].fieldName}">
	                            <select>
	                            	<option>请选择</option>
	                            	<#list fields[x*3+index].fieldMin..fields[x*3+index].fieldMax as i> 
	                            		<#if fields[x*3+index].fieldValue?? && fields[x*3+index].fieldValue ==i >
	                            			<option selected="selected">${i}</option>
	                            		<#else>
		                            		<option>${i}</option>
	                            		</#if>
	                            	</#list>
	                            </select>
	                                                       份</td>
                	 		<#else>
                	 			<td align="right" class="bg" width="15%"></td>
	                            <td></td>
                	 		</#if>
            	 		</#list>
                    </tr>
				</#list>
            </tbody>
        </table> 
    </div>
	</#if>
	
	<#if cwfields??>
	<div class="cktitle"><span class="xiala"></span>财务存柜资料</div>
	<div class="m10 detaiTab" style="border-right:1px solid #e1e1e1; border-left:1px solid #e1e1e1">
        <table data="${FORMTYPE_ARCHIVE_INFO}" width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
            <tbody>
                <#list 0..(cwfields?size/3)?ceiling-1 as x> 
            	 	<tr>
            	 		<#list 0..2 as index> 
                	 		<#if cwfields[x*3+index]??>
	                            <td align="right" class="bg " width="15%">${cwfields[x*3+index].fieldName}</td>
	                            <td class="fieldVaule" data="${cwfields[x*3+index].fieldName}">
	                            <select>
	                            	<option>请选择</option>
	                            	<#list cwfields[x*3+index].fieldMin..cwfields[x*3+index].fieldMax as i> 
	                            		<#if cwfields[x*3+index].fieldValue?? && cwfields[x*3+index].fieldValue ==i >
	                            			<option selected="selected">${i}</option>
	                            		<#else>
		                            		<option>${i}</option>
	                            		</#if>
	                            	</#list>
	                            </select>
	                                                       份</td>
                	 		<#else>
                	 			<td align="right" class="bg" width="15%"></td>
	                            <td></td>
                	 		</#if>
            	 		</#list>
                    </tr>
				</#list>
            </tbody>
        </table> 
    </div>
	</#if>
	
	<div class="cktitle"><span class="xiala"></span>平台寄出快递信息</div>
	<div class="m10 detaiTab" style="border-right:1px solid #e1e1e1; border-left:1px solid #e1e1e1">
        <table data="${FORMTYPE_ARCHIVE_INFO}" width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
            <tbody>
			<tr>
		        <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>寄出时间</td>
		        <td id="ptSendTime"> <@date id="send_time"   name="sendTime" value="${gdRepeatEntity.ptSendTime}"/></td>
		        <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>快递公司</td>
		        <td colspan="3"> <input id="send_company" disabled=="disabled" name="sendCompany" type="text" value="${gdRepeatEntity.ptSendCompany}" /></td>
		    </tr>
		     <tr>
		        <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>快递单号</td>
		        <td> <input id="send_no" name="sendNo" disabled=="disabled" type="text" value="${gdRepeatEntity.ptSendNo}" /></td>
		        <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>寄送凭证（快递单牌照）</td>
		        <td colspan="3" > <div class="openBox action-ajax-load" data-url="<@url value='/archive/rest/v1/fileDiv?loanapplyNo=${referId}&loanId=${loanId}&datalistType=GD_REPEAT_PT&hidenBtn=true'/>" id="file_uploader"> </div></td>
		    </tr>
     		</tbody>
        </table> 
    </div>
	
	<form id="sendForm" action="/archive/rest/v1/saveSendGDRepeatInfo" class="action-ajax-form" >
       <input type="hidden" name="id" value="${gdRepeatEntity.id}"/>
	   <div class="cktitle"><span class="xiala"></span>寄出快递信息</div>
	   <div  class="m10 detaiTab" style="border-right:1px solid #e1e1e1; border-left:1px solid #e1e1e1">
	        <table data="${FORMTYPE_ARCHIVE_INFO}" width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
	            <tbody>
	                <tr>
	                    <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>寄出时间</td>
	                    <td colspan="2" width="40%"> <@date id="send_time" name="sendTime" value="${gdRepeatEntity.sendTime}"/></td>
	                    <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>快递公司</td>
	                    <td colspan="2" width="40%"> <input id="send_company" name="sendCompany" type="text" value="${gdRepeatEntity.sendCompany}" /></td>
	                </tr>
	                 <tr>
	                    <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>快递单号</td>
	                    <td colspan="2" width="40%"> <input id="send_no" name="sendNo" type="text" value="${gdRepeatEntity.sendNo}" /></td>
	                    <td  width="15%" align="right" class="bg " ><span><font color="red">*</font></span>寄送凭证（快递单牌照）</td>
	                    <td colspan="2" width="40%"> <div class="openBox action-ajax-load" data-url="<@url value='/archive/rest/v1/fileDiv?loanapplyNo=${referId}&loanId=${loanId}&datalistType=GD_REPEAT&hidenBtn=false'/>" id="file_uploader"> </div></td>
	                </tr>
	            </tbody>
	        </table> 
	    </div>
	   </form>
	  <div class=" mtb20 tac">
	  	<span id="archiveErrorMsg" style="disploy:none;" class="red"></span></br>
		<a id="saveSendBorrowBtn" href="javascript:void(0);" class="btn_auto_30 btn_blue">保 存</a>
	  </div>
<@js>

	$('#ptSendTime input').attr('disabled','disabled');
	$('#archiveRecordForm select').attr('disabled','disabled');
	$('#archiveBorrowRecordDiv select').attr('disabled','disabled');
	
	$("#saveSendBorrowBtn").click(function(){
		if(!$('#sendForm .jqUploadFile').length){
			$('#archiveErrorMsg').text('快递寄送凭证不能为空！').show();
			return;
		}
		if(!$('#send_company').val()){
			$('#archiveErrorMsg').text('快递公司不能为空！').show();
			return;
		}
		if(!$('#send_no').val()){
			$('#archiveErrorMsg').text('快递单号不能为空！').show();
			return;
		}
		if(!$('#send_time').val()){
			$('#archiveErrorMsg').text('寄出时间不能为空！').show();
			return;
		}
		$('#archiveErrorMsg').text('').hide();
		$('#sendForm').submit();
    });
</@js>
<@jsRender/>







